package com.jspgou.cms.manager;

import java.util.List;

import com.jspgou.common.page.Pagination;
import com.jspgou.cms.entity.ShopTuijanproduct;
import com.jspgou.cms.entity.ShopTuijian;
import com.jspgou.cms.entity.Product;

public interface ShopTuijanproductMng {
	public Pagination getPage(int pageNo, int pageSize);

	public ShopTuijanproduct findById(Long id);

	public ShopTuijanproduct save(ShopTuijanproduct bean);

	public ShopTuijanproduct update(ShopTuijanproduct bean);

	public ShopTuijanproduct deleteById(Long id);
	
	public ShopTuijanproduct[] deleteByIds(Long[] ids);
	
	public  List<ShopTuijanproduct> getShopTuijanproducts(Product product,ShopTuijian tuijian);//根据推荐分类和商品查询是否已经推荐过
	
	
	public Pagination getBytuijian(Long id,int pageNo, int pageSize);//根据推荐分类查询该分类下所有的商品
	
	public List<ShopTuijanproduct> getList(Long id, int count);
	
	public ShopTuijanproduct[] updateOrder(Long[] ids, Integer[] priority) ;
}